package handlerChain;

import java.util.ArrayList;
import java.util.List;

public class AHandler implements BaseFilterHandler{


    @Override
    public boolean isHandler(String status) {
        return "init".equals(status);
    }

    @Override
    public boolean handle(SerialOrder object) {
        if(object.getStatus().equals("init")){
            System.out.println("流水单当初处于 init 状态");
            System.out.println("init 状态处理中.....");
            System.out.println("流水单 init 状态处理结束,将切换为 submit状态");
            object.setStatus("submit");
            return true;
        }else{
            object.setStatus("submit");
        }

        List a = new ArrayList();


        return false;
    }
}
